<script type="text/javascript">
	Yutil.useLoadingMessage();
	Yutil.en.enhance();
</script>
<%@taglib prefix="ax" uri="/WEB-INF/AlanXUpload.tld" %>

<fieldset>
	<legend>
		创建员工
	</legend>
	<form id="employee_form" action="employeeCreate.do">
		<table align="left" class="form">
			<tr>
				<th>
					员工编号：
				</th>
				<td>
					<input id="employeeNum" type='text'></input>
				</td>
			</tr>
			<tr>
				<th>
					姓名：
				</th>
				<td>
					<input type='text' name='employeeName'></input>
				</td>
			</tr>
			<tr>
				<th>
					性别：
				</th>
				<td>
					<select name='employeeSex'>
						<option>
							男
						</option>
						<option>
							女
						</option>
					</select>
				</td>
			</tr>
			<tr>
				<th>
					生日：
				</th>
				<td>
					<input type="text" id="birthday" name='employeeBirthday' class="date" />
				</td>
			</tr>
			<tr>
				<th>
					国籍：
				</th>
				<td>
					<input name='employeeRegion' type='text'></input>
				</td>
			</tr>
			<tr>
				<th>
					身份证号码：
				</th>
				<td>
					<input name='employeeIdentId' type='text'></input>
				</td>
			</tr>
			<tr>
				<th>
					婚姻状况：
				</th>
				<td>
					<select name='employeeMarried'>
						<option>
							未婚
						</option>
						<option>
							已婚
						</option>
					</select>
				</td>
			</tr>
			<tr>
				<th>
					居住地地址：
				</th>
				<td>
					<input name='employeeAddress' type='text'></input>
				</td>
			</tr>
			<tr>
				<th>
					电子邮件：
				</th>
				<td>
					<input name='employeeEmail' type='text'></input>
				</td>
			</tr>
			<tr>
				<th>
					联系电话：
				</th>
				<td>
					<input name='employeePhone' type='text'></input>
				</td>
			</tr>
			<tr>
				<th>
					移动电话：
				</th>
				<td>
					<input name='employeeMobile' type='text'></input>
				</td>
			</tr>
			<tr>
				<th>
					邮编：
				</th>
				<td>
					<input name='employeeZipcode' type='text'></input>
				</td>
			</tr>
			<tr>
				<td>
					<input class="button" type="button" value="保存" onclick="save(this)"></input>
				</td>
				<td>
					<input class="button" type="reset" value="重置"></input>
				</td>
			</tr>
		</table>
	</form>
	<ax:head/>
	<ax:body/>
</fieldset>

<script type="text/javascript">
	save = function(btn) {
		var url = "/" + "<%=LocalContants.PROJECT_NAME%>" + "/employeeCreate.do"; 
		var pars = Form.serialize($('employee_form'));
		alert(pars);
		if(Yform.validateAllOnSubmit(btn)) {
			var myAjax = new Ajax.Updater("right",url,{method:'post',parameters: pars, encoding: 'utf-8', evalScripts:true});
		}
		Yutil.hideDialog('employeeCreationDialog');
	}
</script>

<%@ page import="java.util.*"%>
<%@ page import="com.esms.bean.Contract"%>
<%@ page import="com.esms.struts.service.*"%>
<%@ page language="java" contentType="text/html; charset=utf-8"%>